import * as THREE from 'three';

// const geometry = new THREE.BoxGeometry( 100, 100, 100 );
const geometry = new THREE.PlaneGeometry(100, 100,);

// const geometry = new THREE.SphereGeometry(100, 20, 20);

// 缩放
// geometry.scale(2,2,2);
// 平移
geometry.translate(100,0,0);
// 旋转
// geometry.rotateX(Math.PI/2);
// 居中(平移)
geometry.center();

console.log('.postion', geometry.attributes.position)
console.log('.index', geometry.index)

//MeshBasicMaterial
//MeshLambertMaterial
const material = new THREE.MeshBasicMaterial({
    color: 0x00ffff,
    // side: THREE.DoubleSide,
    // wireframe: true
});
// 定义了一个网格模型对象
const mesh = new THREE.Mesh(geometry, material);

export default mesh;